import 'reflect-metadata';
import { createConnection } from 'typeorm';
import { ormconfig } from './config/app.config';
import { AppServer } from './server';

createConnection(ormconfig)
  .then(async () => {
    AppServer();
  })
  .catch(error => console.log(error));
